﻿using System.ComponentModel.DataAnnotations;
using INSE6260.OnlineBanking.Infrastructure;
using INSE6260.OnlineBanking.Infrastructure.Domain;
using INSE6260.OnlineBanking.Model.Clients;

namespace INSE6260.OnlineBanking.Model.Payee
{
    public class Payee : EntityBase, IAggregateRoot
    {
        public int Id { get; set; }
        public int ClientId { get; set; }
        public int PayeeNameId { get; set; }
        [Required(AllowEmptyStrings = false, ErrorMessage = "Nick Name can not be null.")]
        public string NickName { get; set; }
        [Required(AllowEmptyStrings = false, ErrorMessage = "Account No can not be null.")]
        public string AccountNo { get; set; }

        public virtual Client Client { get; set; }
        public virtual PayeeName PayeeName { get; set; }
    }
}
